package com.hifar.test.entrust.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author system
 * @description 校验当日排量请求参数VO
 * @date 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "校验当日排量请求对象", description = "校验当日排量请求对象")
public class ValidateDailyDisplacementVO {

    @ApiModelProperty(value = "委托日期", required = true)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "委托日期不能为空!")
    private Date entrustTime;

    @ApiModelProperty(value = "类型编码(1-气候 2-力学)", required = true)
    @NotEmpty(message = "类型编码不能为空!")
    private String unitTypeCode;

    @ApiModelProperty(value = "委托单ID(编辑时传入，用于排除自身)", required = false)
    private String id;
}

